package com.cn.study005;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName TempConvert.java
 * @Description
 * @createTime 2023年05月11日 16:46:00
 */
public class TempConvert {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入摄氏温度");
        double c = sc.nextDouble();
        int i = 0;
        do {
            if (i == 0) {
                System.out.println("摄氏温度\t华氏温度");
            }
            double f =c*9/5.0+32;
            System.out.println(c+"\t"+f);
            i++;
            c+=20;
        } while (i < 10 && c <= 250 && c >= 0);

    }
}
